package com.atguigu.dao;

import com.atguigu.pojo.NginxServiceConfigTcpProxy;

import java.util.List;

public interface NginxServiceConfigTcpProxyDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addNginxServiceConfigTcpProxy(NginxServiceConfigTcpProxy nginxServiceConfigTcpProxy);
    public int deleteNginxServiceConfigTcpProxyById(String id);
    public int updateNginxServiceConfigTcpProxy(NginxServiceConfigTcpProxy nginxServiceConfigTcpProxy);
    public NginxServiceConfigTcpProxy queryNginxServiceConfigTcpProxyById(String id);
    public List<NginxServiceConfigTcpProxy> queryNginxServiceConfigTcpProxys();
    public List<NginxServiceConfigTcpProxy> queryNginxServiceConfigTcpProxiesByServiceId(String serviceId);
    public List<NginxServiceConfigTcpProxy> queryNginxServiceConfigTcpProxiesByFrontPort(String frontPort);
    public List<NginxServiceConfigTcpProxy> queryNginxServiceConfigTcpProxiesByServiceIdFrontDomainPort(String serviceId,String frontDomain,String frontPort);
    public Integer queryForPageTotalCount();
    public List<NginxServiceConfigTcpProxy> queryForPageItems(Integer begin, Integer pageSize);
}
